﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WarehouseManagement.BusinessLogic.BC;
using WarehouseManagement.ViewModels.Export;

namespace WarehouseManagement.Presenters.Export
{
    public class ViewExportPresenter : BasePresenter<IViewExportViewModel>
    {
        private ExportBC _exportBC;
        private CustomerBC _custBC;

        public ViewExportPresenter()
        {
            _exportBC = new ExportBC();
            _custBC = new CustomerBC();


        }

        protected override void WireupEventHandles()
        {

        }

        public void LoadExportList()
        {
            Model.ExportList = _exportBC.GetExportList(Model.FromDate, Model.ToDate);
        }

        public void LoadCustomerList()
        {
            //var list = _custBC.GetCustomerList().ToList();
            //list.Insert(0, new WarehouseManagement.DTO.CustomerDTO() { Id=-1, CustomerName="Tất cả" });
            //Model.CustomerList = list;

        }
    }
}
